﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model.ResultModel
{
    public class MenuResult
    {
        public decimal Id { get; set; } // 必需：用于递归构建树
        public string path { get; set; }
        public string name { get; set; }
        public object component { get; set; } // 支持字符串路径或动态导入函数
        public string redirect { get; set; }
        public string menuType { get; set; }
        public MetaProps meta { get; set; }
        public int sortOrder { get; set; }
        public string isActive { get; set; }
        public List<MenuResult> children { get; set; } // 必需：子节点列表
    }

    public class MetaProps
    {
      
        
        public string icon { get; set; }
        public string title { get; set; }
        public string activeMenu { get; set; }
        public string isLink { get; set; }
        public bool isHide { get; set; }
  
        public bool isFull { get; set; }
        public bool isAffix { get; set; }
        public bool isKeepAlive { get; set; }
    }
}
